package ControlLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class TestDVDCtr.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class TestDVDCtr
{
    /**
     * Default constructor for test class TestDVDCtr
     */
    public TestDVDCtr()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void createDVD()
    {
        ControlLayer.DVDCtr dVDCtr1 = new ControlLayer.DVDCtr();
        dVDCtr1.createDVD(1, "Star Wars", "Georg Lucas", "1502");
    }

    @Test
    public void findDvd()
    {
        ControlLayer.DVDCtr dVDCtr1 = new ControlLayer.DVDCtr();
        dVDCtr1.createDVD(1, "StarWars", "Lucas", "010179");
        dVDCtr1.findDVD(1);
    }



    @Test
    public void deleteDVD()
    {
        ControlLayer.DVDCtr dVDCtr1 = new ControlLayer.DVDCtr();
        dVDCtr1.createDVD(1, "Star Wars", "Lucas", "160579");
        dVDCtr1.removeDVD(1);
    }

    @Test
    public void createSpecimen()
    {
        ControlLayer.DVDCtr dVDCtr2 = new ControlLayer.DVDCtr();
        dVDCtr2.createDVD(1, "Star Wars", "Lucas", "160579");
        dVDCtr2.createCopy(1, 1, "2511", "122");
    }

    @Test
    public void findSpecimen()
    {
        ControlLayer.DVDCtr dVDCtr1 = new ControlLayer.DVDCtr();
        dVDCtr1.createDVD(1, "Star Wars", "Lucas", "160579");
        dVDCtr1.createCopy(1, 1, "2511", "122");
        dVDCtr1.getSpecimen(1, 1);
    }
}






